package vg.services.data_base_manager.data.header;

public class GraphHeader implements Cloneable {
	// Main data
	private int id;
    private int graphModelId;
    private boolean directed;
    private boolean root;
	
	public GraphHeader(int id, int graphModelId) {
		this(id, graphModelId, false, false);
	}
	
	public GraphHeader(int id, int graphModelId, boolean directed, boolean root) {
		this.id = id;
		this.graphModelId = graphModelId;
		this.directed = directed;
        this.root = root;
	}

    public int getId() {
        return id;
    }

    public int getGraphModelId() {
        return graphModelId;
    }

    public boolean isDirected() {
        return directed;
    }

    public boolean isRoot() {
        return root;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setGraphModelId(int graphModelId) {
        this.graphModelId = graphModelId;
    }

    public void setDirected(boolean directed) {
        this.directed = directed;
    }

    public void setRoot(boolean root) {
        this.root = root;
    }

    @Override
	public GraphHeader clone() {
		return new GraphHeader(id, graphModelId, directed, root);
	}
}
